package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_ZCLX"
 *     
*/
public class DmZclx implements Serializable {

    /** identifier field */
    private String zclxDm;

    /** nullable persistent field */
    private String zclxMc;

    /** full constructor */
    public DmZclx(String zclxDm, String zclxMc) {
        this.zclxDm = zclxDm;
        this.zclxMc = zclxMc;
    }

    /** default constructor */
    public DmZclx() {
    }

    /** minimal constructor */
    public DmZclx(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ZCLX_DM"
     *         
     */
    public String getZclxDm() {
        return this.zclxDm;
    }

    public void setZclxDm(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZCLX_MC"
     *             length="30"
     *         
     */
    public String getZclxMc() {
        return this.zclxMc;
    }

    public void setZclxMc(String zclxMc) {
        this.zclxMc = zclxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("zclxDm", getZclxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmZclx) ) return false;
        DmZclx castOther = (DmZclx) other;
        return new EqualsBuilder()
            .append(this.getZclxDm(), castOther.getZclxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getZclxDm())
            .toHashCode();
    }

}
